<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
   
    <h:body>
        <ui:composition template="master.xhtml">
            <ui:define name="top">
                   
                <div id="header_logo">
                    Votenetwork
                </div>
                <div id="login">
                    <h:form>
                        <table>
                            <tr>
                                <td>
                                    <p>Email:</p>
                                    <h:message for="login_id" id="login_info_required1"/>
                                    <h:inputText required="true" value="#{votePM.email}"
                                    requiredMessage="Email required" 
                                    id="login_id"/>
                                </td>
                                <td>
                                    <p>Email:</p>
                                    <h:message for="login_pw" id="login_info_required2"/>
                                    <h:inputText required="true" value="#{votePM.pw}"
                                     requiredMessage="Password required" 
                                    id="login_pw"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <h:commandButton value="login" action="#{votePM.login}"/>
                                </td> 
                            
                                <td>
                                    Not a Member yet? <h:commandLink  styleClass="register_link" value="Register" action="registration"/>
                                </td>
                            </tr>
                        </table>
                   </h:form>
                </div>
            </ui:define>
            
            <ui:define name="leftbar"></ui:define>
            
            <ui:define name="content">
                Welcome
            </ui:define>
        </ui:composition>
        
    </h:body>
</html>

